Skip to content

gh-138890: Forbidden to suggest builtins name when NameError raised from deleting a name#140813

Closed
Locked-chess-official wants to merge 4 commits intopython:mainfrom
Locked-chess-official:NameError_op
Closed

gh-138890: Forbidden to suggest builtins name when NameError raised from deleting a name#140813
Locked-chess-official wants to merge 4 commits intopython:mainfrom
Locked-chess-official:NameError_op

Conversation

@Locked-chess-official
Copy link
Contributor

@Locked-chess-official Locked-chess-official commented Oct 31, 2025

To avoid that the suggestion in del next and del anext point to each other, it needs an attribute for _compute_suggestion_error to use. When NameError raised from deleting a name, the builtins names shouldn't be contained in the suggestion list.

@Locked-chess-official
Copy link
Contributor Author

Very surprised. On my windows computer the build.bat run well but in CI the same system failed.

@Locked-chess-official
Copy link
Contributor Author

Locked-chess-official commented Nov 11, 2025

See the other solution. The way there is better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant